import request from '@/utils/request'
// 仓库管理

// 获取列表接口
export const getList = (data) => request.get('/api/warehouse/page', {
  params: {
    like_code: data.like_code,
    like_name: data.like_name,
    current: data.current,
    size: data.size,
    descs: data.descs,
    status: data.status
  }
})

// 停用/启用接口
export const changeStatus = (data) => request.put('/api/warehouse', data)

// 新增页面
// Ck接口
export const getCK = () => request.get('/api/codeFactory/next/CK')

// 编辑接口
export const getEditList = (id) => request.get(`/api/warehouse/${id}`)

// 编辑提交接口
export const edit = (data) => request.put('/api/warehouse', data)

// 新增接口
export const add = (data) => request.post('/api/warehouse', data)
